        // Get the name parameter from the URL
        const urlParams = new URLSearchParams(window.location.search);
        const name = urlParams.get('name');

        // Insert the name into the greeting div (vulnerable to DOM XSS)
        if (name) {
            document.getElementById('greeting').innerHTML = `Hello, ${name}!`;
        }